#include "ChangeEmployeeTransaction.h"
#include "Employee.h"
#include "PayrollDatabase.h"
extern PayrollDataBase GpayrollDatabase;
ChangeEmployeeTransaction::~ChangeEmployeeTransaction()
{

}

ChangeEmployeeTransaction::ChangeEmployeeTransaction(int empid)
	:itsEmpld(empid)
{

}

void ChangeEmployeeTransaction::Execute()
{
	Employee* e = GpayrollDatabase.GetEmployee(itsEmpld);
	if (e != 0)
		Change(*e);
}